function openTitle()

  if areas.current ~= "titleScreen" then return end

  local sX = 40
  local sY = ScrH() - 275
  local yS = 50

  gui.Button{text = "", size = {0, 0}, pos = {-2,-2}}

  if gui.Button{text = "Single Player", size = {250, 35}, pos = {sX,sY}} then
    areas.mainGameSingle()
  end
  if gui.Button{text = "Multiplayer", size = {250, 35}, pos = {sX,sY + yS*1}} then
    areas.mainGameMulti()
  end
  if gui.Button{text = "Level Editor", size = {250, 35}, pos = {sX,sY + yS*2}} then
    areas.levelEditor()
  end
  if gui.Button{text = "Options", size = {250, 35}, pos = {sX,sY + yS*3}} then
    areas.optionsMenu()
  end
  if gui.Button{text = "Quit", size = {250, 35}, pos = {sX,sY + yS*4}} then
    love.event.quit()
  end
end

areas.titleScreen = function()
  areas.current = "titleScreen"
  hook.Add("draw", "titleGUI", openTitle)
end
